<include file="Include:header"/>
<script type="text/javascript" src="../Public/js/script2.js"></script>
<script type="text/javascript" src="../Public/js/jquery.cycle.min.js"></script>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<link rel="stylesheet" type="text/css" href="../Public/css/cart.css" media="screen"/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<style>
    /*body, html {*/
        /*background-image: url(../Public/images/body-bg.png);*/
        /*-webkit-font-smoothing: antialiased;*/
    /*}*/

    a {
        font-size: 12px;
    }
</style>

<section id="content">

    <section id="left-column">

        <!-- Main Content Area -->
        <section id="main">

            <h2>购物车查看</h2>

            <p>您的购买了以下物品:</p>

            <form method="post" action="__SELF__">


                <foreach item="vo" name="shop_cart">
                <div class="product-cart">

                    <h2>{$vo.name}/{$vo.unit}{$vo.price}￥</h2>

                    <!--<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor...</p>-->
                    <label for="amount-product-1">数量 <a href="__URL__/delete/id/{$vo.id}"  style="display:inline" title="Remove">(删除)</a></label>
                    <input type="text" name="num[{$vo.id}]" style="display:inline" id="amount-product-1" value="{$vo.num}" size="2"/>

                    <h2 class="item"><?php echo $vo[price] * $vo[num] ;?>￥</h2><input type="submit" name="update" class="button" value="更改"/>
                </div>
                </foreach>


                <div class="total">
                    <h3>总价: <b>{$total_price}￥</b></h3>
                    <!--<br/>(可获积分255点)-->
                </div>
                <div class="right">
                    <input type="submit" name="submit" class="button" value="下一步"/>
                </div>
            </form>

        </section>
        <!-- Secondary Feature Area — Useful for Sales -->
        <section class="sale">
            <h1>秒杀商品<a href="{:U('Shop/index',array('type'=>2))}" title="See All Products">查看全部</a></h1>
            <ul>
                <li class="slide">

                    <foreach item="vo" name="shop_list">
                    <div class="product">
                        <img src="http://{$THINK.SERVER.HTTP_HOST}/{$vo.img}" alt="Product Image"/>

                        <div class="overlay">
                            <div class="price">
                                <h2>{$vo.name}</h2>
                                <ul>
                                    <li><b>{$vo.price}￥</b>
                                        <del>{$vo.price}￥</del>
                                    </li>
                                    <li class="details"><a href="{:U('ShopCart/add',array('id'=>$vo[id]))}"  class="buy">预定</a></li>
                                </ul>
                            </div>
                        </div>
                    </div></foreach>
                </li>
            </ul>
        </section>

    </section>
</section>

<include file="Include:footer"/>
